"""ETL indicates Extract-Transform-Loading, which is an important process in database management."""

def transform(legacy_data: dict) -> dict:
    result = dict()
    for key, value in legacy_data.items():
        for letter in value:
            result[letter.lower()] = key
    return result